import request from '@/utils/request'

// 查询轮播图配置列表
export function listCarouselimage(query) {
  return request({
    url: '/tianqi/carouselimage/list',
    method: 'get',
    params: query
  })
}

// 查询轮播图配置详细
export function getCarouselimage(id) {
  return request({
    url: '/tianqi/carouselimage/' + id,
    method: 'get'
  })
}

// 新增轮播图配置
export function addCarouselimage(data) {
  return request({
    url: '/tianqi/carouselimage',
    method: 'post',
    data: data
  })
}

// 修改轮播图配置
export function updateCarouselimage(data) {
  return request({
    url: '/tianqi/carouselimage',
    method: 'put',
    data: data
  })
}

// 删除轮播图配置
export function delCarouselimage(id) {
  return request({
    url: '/tianqi/carouselimage/' + id,
    method: 'delete'
  })
}
